import request from '@/utils/request'


export function getDomainUsableList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/domain/getUsableList',
    method: 'post',
    data: query
  })
}   


export function getDomainList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/domain/getList',
    method: 'post',
    data: query
  })
}   

export function saveDomain(query) {
  return request({
    url: '/pagination/admin/domain/save',
    method: 'post',
    data: query
  })
}

export function removeDomain(query) {
  return request({
    url: '/pagination/admin/domain/remove',
    method: 'post',
    data: query
  })
}
export function getDomainDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/domain/getDetail',
    method: 'post',
    data: query
  })
}